package com.boot.cluster.worker.bean;


import com.boot.cluster.enums.WorkState;

import java.io.Serializable;
import java.util.Map;

public class TaskResponse implements Serializable {

	private static final long serialVersionUID = 6644931402924033936L;

	private String id;

	private String seq;

	private WorkState state;

	private Object data;

	private Map<String,Object> param;

	private RuntimeException e;

	public TaskResponse() {
	}

	public TaskResponse(String id, String seq, Map<String, Object> param) {
		this.id = id;
		this.seq = seq;
		this.param = param;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSeq() {
		return this.seq;
	}

	public void setSeq(String seq) {
		this.seq = seq;
	}

	public Object getData() {
		return this.data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public RuntimeException getE() {
		return this.e;
	}

	public void setE(RuntimeException e) {
		this.e = e;
	}

	public WorkState getState() {
		return this.state;
	}

	public void setState(WorkState state) {
		this.state = state;
	}
	public Map<String, Object> getParam() {
		return this.param;
	}

	public void setParam(Map<String, Object> param) {
		this.param = param;
	}
}
